import './assets/main.scss'

import { createApp } from 'vue'
//导入路由
import router from './router/index.js'

//导入pinia
import {createPinia} from 'pinia'
const pinia = createPinia()

//导入element-plus的包和样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import App from './App.vue'
//导入persist插件
import {createPersistedState} from 'pinia-persistedstate-plugin'
const persist = createPersistedState()
import locale from 'element-plus/dist/locale/zh-cn.js'

const app = createApp(App)

//使用element-plus的语言包--分页
//使用element-plus
app.use(ElementPlus,{locale})

//使用路由
app.use(router)

//使用pinia
app.use(pinia)

//使用persist
pinia.use(persist)

//挂载app
app.mount('#app')